package org.example.campus_sys_backend.service;

import org.example.campus_sys_backend.mapper.ClassInfoMapper;
import org.example.campus_sys_backend.model.ClassInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ClassService {
    @Autowired
    private ClassInfoMapper classInfoMapper;

    public Integer insertClass(ClassInfo classinfo){
        return classInfoMapper.insertClass(classinfo);
    }

    public Integer configureTeacher(Integer classId, String teacherName){
        return classInfoMapper.configureTeacher(classId, teacherName);
    }
    public Integer updateClass(Integer id, String name, Date createdTime, String classDesc, Integer activityId){

        return classInfoMapper.updateClass(id,name,createdTime,classDesc,activityId);
    }
}
